package com.woniu.service;

import com.woniu.adapter.GoldFundSellAdapter;
import com.woniu.service.bean.GoldFundSell;
import com.woniu.service.bean.GoldFundSellHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoldFundSellService implements GoldFundSellHandler {

    @Autowired
    private GoldFundSellAdapter goldFundSellAdapter;

    /**
     * 添加黄金基金的卖出数据到数据库
     * @param command
     */
    @Override
    public void action(GoldFundSell command) {
        goldFundSellAdapter.AddGoldFundSell(command);
    }

    /**
     * 根据id删除
     */
    public void deleteById(Integer Sid){
        goldFundSellAdapter.deleteById(Sid);
    }
}
